<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/socket/internal/UdpClient.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_9ad1227260954e346101f3844f0abb3d.html">socket</a></li><li class="navelem"><a class="el" href="dir_1865c4ce8b99f52bbeabfd52bfdd7cd3.html">internal</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">UdpClient.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_udp_client_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __UDPCLIENT_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __UDPCLIENT_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_udp_base_8h.html">UdpBase.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<a class="code" href="_udp_client_8h.html#a61c576a3ecf77474c8ff27b962bd3a45">EXPORT_SHARED_PTR</a>(<a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>, <a class="code" href="class_c_io_port_service.html">CIoPortService</a>);</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a>;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_c_udp_client.html">   14</a></span>&#160;<span class="keyword">class </span><a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="code" href="class_c_udp_client.html">CUdpClient</a> :<span class="keyword">public</span> <a class="code" href="class_c_udp_base.html">CUdpBase</a></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <a class="code" href="class_c_udp_base.html#ab7a69d000d4b674aad70ece07db2c074">delete_class_copy_operator</a>(<a class="code" href="class_c_udp_client.html">CUdpClient</a>);</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_c_udp_client.html#a96c10005edd6a1e8fe4a727fddd0d425">   21</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_client.html#a96c10005edd6a1e8fe4a727fddd0d425">AsyncRecvfrom</a>(<a class="code" href="class_c_udp_socket.html">CUdpSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, <a class="code" href="class_c_sock_addr.html">CSockAddr</a>* addr, <span class="keyword">const</span> <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>&amp; func, <span class="keywordtype">void</span>* invoker <span class="comment">/* = NullPtr */</span>) {}</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_c_udp_client.html#aecb1ef4ed9971bb418ae2e07f7852882">   22</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_client.html#aecb1ef4ed9971bb418ae2e07f7852882">AsyncSendTo</a>(<a class="code" href="class_c_udp_socket.html">CUdpSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, <a class="code" href="class_c_sock_addr.html">CSockAddr</a>* addr, <span class="keyword">const</span> <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>&amp; func, <span class="keywordtype">void</span>* invoker <span class="comment">/* = NullPtr */</span>) {}</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="class_c_udp_client.html">CUdpClient</a>(<span class="keywordtype">bool</span> isWriteLog);</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="class_c_udp_client.html">CUdpClient</a>();</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_c_sock_error.html">CSockError</a> <a class="code" href="class_c_udp_base.html#a4f67f613a4d8e20ee122a21eb0006dfa">Init</a>(<a class="code" href="class_c_socket.html">CSocket</a>&amp; sock, <span class="keywordtype">bool</span> isServer <span class="comment">/* = false */</span>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#a2c90c99cb091d60480807292b4b550ce">AsyncConnect</a>(<a class="code" href="class_c_udp_socket.html">CUdpSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>&amp; func, <span class="keywordtype">void</span>* invoker = <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#a8ffbb760ed06200df0a7a1c2491e4f02">AsyncRead</a>(<a class="code" href="class_c_udp_socket.html">CUdpSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, <span class="keyword">const</span> <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>&amp; func, <span class="keywordtype">void</span>* invoker = <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#afaa45e06d21d0ef2c3cdb965b4a62466">AsyncSend</a>(<a class="code" href="class_c_udp_socket.html">CUdpSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, <span class="keyword">const</span> <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>&amp; func, <span class="keywordtype">void</span>* invoker = <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#a3a32f4a3d3c6dcf2e596167c0388b9e8">Post</a>(<span class="keyword">const</span> <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>&amp; func, <span class="keywordtype">void</span>* invoker = <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_c_udp_base.html#ae9515a147896f2f4493407a03bb21c03">Run</a>();</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_c_udp_base.html#abd8f00554bbd461ddc245a8dbc12342b">Run_One</a>();</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#a3278a0321a26d29983c080eebad9865e">NotifyStop</a>();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_c_udp_base.html#a1b617bf569035b349d5f9e3fa7c1062d">IsStop</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#abc3649c6c9856818532e9c2b47b16381">WaitServerStop</a>();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_c_io_port_service.html">CIoPortService</a>* <a class="code" href="class_c_udp_base.html#af6768c0abfb54cce387c6b353b5e9dd0">GetIoPortService</a>();</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#a14a97c2f7a8c0b4421cf81503b071d31">DelTimer</a>(<a class="code" href="class_c_timer_base.html">CTimerBase</a>&amp; timer);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_c_udp_base.html#a63759990d87d12f87c1950290b54e8ee">UpdateTimer</a>(<a class="code" href="class_c_timer_base.html">CTimerBase</a>&amp; timer);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_udp_base.html#a2f978d31627d822f09a185a3f1be5b77">SetTimer</a>(<a class="code" href="class_c_timer_base.html">CTimerBase</a>&amp; timer);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keyword">static</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> <a class="code" href="_sock_data_8h.html#ae8573b45542da05c99e8e2154032d606">IoCompleteFunc</a>(<a class="code" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a>* oved);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_c_udp_client.html#a17f6e1e30545661f67e6bc2628c884e9">  103</a></span>&#160;    <a class="code" href="class_shared_ptr.html">SharedPtr&lt;CIoPortService&gt;</a> <a class="code" href="class_c_udp_client.html#a17f6e1e30545661f67e6bc2628c884e9">_service</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;};</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_udp_base_html_a2f978d31627d822f09a185a3f1be5b77"><div class="ttname"><a href="class_c_udp_base.html#a2f978d31627d822f09a185a3f1be5b77">CUdpBase::SetTimer</a></div><div class="ttdeci">virtual void SetTimer(CTimerBase &amp;timer)=0</div></div>
<div class="ttc" id="a_udp_client_8h_html_a61c576a3ecf77474c8ff27b962bd3a45"><div class="ttname"><a href="_udp_client_8h.html#a61c576a3ecf77474c8ff27b962bd3a45">EXPORT_SHARED_PTR</a></div><div class="ttdeci">DEF_BEG_LIBTOOLS EXPORT_SHARED_PTR(LIBTOOLS, CIoPortService)</div></div>
<div class="ttc" id="aclass_c_udp_client_html_a17f6e1e30545661f67e6bc2628c884e9"><div class="ttname"><a href="class_c_udp_client.html#a17f6e1e30545661f67e6bc2628c884e9">CUdpClient::_service</a></div><div class="ttdeci">SharedPtr&lt; CIoPortService &gt; _service</div><div class="ttdef"><b>Definition:</b> <a href="_udp_client_8h_source.html#l00103">UdpClient.h:103</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_a14a97c2f7a8c0b4421cf81503b071d31"><div class="ttname"><a href="class_c_udp_base.html#a14a97c2f7a8c0b4421cf81503b071d31">CUdpBase::DelTimer</a></div><div class="ttdeci">virtual void DelTimer(CTimerBase &amp;timer)=0</div></div>
<div class="ttc" id="aclass_c_udp_base_html_abc3649c6c9856818532e9c2b47b16381"><div class="ttname"><a href="class_c_udp_base.html#abc3649c6c9856818532e9c2b47b16381">CUdpBase::WaitServerStop</a></div><div class="ttdeci">virtual void WaitServerStop()=0</div><div class="ttdoc">通知服务停止并等待</div></div>
<div class="ttc" id="aclass_c_sock_error_html"><div class="ttname"><a href="class_c_sock_error.html">CSockError</a></div><div class="ttdoc">套接字错误信息类</div><div class="ttdef"><b>Definition:</b> <a href="_sock_error_8h_source.html#l00013">SockError.h:13</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_abd8f00554bbd461ddc245a8dbc12342b"><div class="ttname"><a href="class_c_udp_base.html#abd8f00554bbd461ddc245a8dbc12342b">CUdpBase::Run_One</a></div><div class="ttdeci">virtual bool Run_One()=0</div><div class="ttdoc">运行一次服务</div></div>
<div class="ttc" id="aclass_c_udp_base_html_a8ffbb760ed06200df0a7a1c2491e4f02"><div class="ttname"><a href="class_c_udp_base.html#a8ffbb760ed06200df0a7a1c2491e4f02">CUdpBase::AsyncRead</a></div><div class="ttdeci">virtual void AsyncRead(CUdpSocket &amp;sock, const CStreamIteator &amp;buff, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)=0</div></div>
<div class="ttc" id="a_udp_base_8h_html"><div class="ttname"><a href="_udp_base_8h.html">UdpBase.h</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html"><div class="ttname"><a href="class_c_stream_iteator.html">CStreamIteator</a></div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00011">StreamByte.h:11</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_afaa45e06d21d0ef2c3cdb965b4a62466"><div class="ttname"><a href="class_c_udp_base.html#afaa45e06d21d0ef2c3cdb965b4a62466">CUdpBase::AsyncSend</a></div><div class="ttdeci">virtual void AsyncSend(CUdpSocket &amp;sock, const CStreamIteator &amp;buff, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)=0</div></div>
<div class="ttc" id="aclass_shared_ptr_html"><div class="ttname"><a href="class_shared_ptr.html">SharedPtr&lt; HandleBase &gt;</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_a1b617bf569035b349d5f9e3fa7c1062d"><div class="ttname"><a href="class_c_udp_base.html#a1b617bf569035b349d5f9e3fa7c1062d">CUdpBase::IsStop</a></div><div class="ttdeci">virtual bool IsStop() const =0</div><div class="ttdoc">服务是否停止</div></div>
<div class="ttc" id="aclass_c_sock_addr_html"><div class="ttname"><a href="class_c_sock_addr.html">CSockAddr</a></div><div class="ttdoc">协议地址结构体</div><div class="ttdef"><b>Definition:</b> <a href="_sock_tools_8h_source.html#l00043">SockTools.h:43</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="aclass_c_udp_socket_html"><div class="ttname"><a href="class_c_udp_socket.html">CUdpSocket</a></div><div class="ttdoc">udp套接口</div><div class="ttdef"><b>Definition:</b> <a href="_udp_socket_8h_source.html#l00010">UdpSocket.h:10</a></div></div>
<div class="ttc" id="atools_8h_html_a64152c8b939d1ce06c7c5cb6c97b62f8"><div class="ttname"><a href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a></div><div class="ttdeci">#define LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00095">tools.h:95</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_ab7a69d000d4b674aad70ece07db2c074"><div class="ttname"><a href="class_c_udp_base.html#ab7a69d000d4b674aad70ece07db2c074">CUdpBase::delete_class_copy_operator</a></div><div class="ttdeci">delete_class_copy_operator(CUdpBase)</div></div>
<div class="ttc" id="aclass_c_udp_base_html_ae9515a147896f2f4493407a03bb21c03"><div class="ttname"><a href="class_c_udp_base.html#ae9515a147896f2f4493407a03bb21c03">CUdpBase::Run</a></div><div class="ttdeci">virtual bool Run()=0</div><div class="ttdoc">运行服务</div></div>
<div class="ttc" id="aclass_c_udp_base_html_a2c90c99cb091d60480807292b4b550ce"><div class="ttname"><a href="class_c_udp_base.html#a2c90c99cb091d60480807292b4b550ce">CUdpBase::AsyncConnect</a></div><div class="ttdeci">virtual void AsyncConnect(CUdpSocket &amp;sock, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)=0</div><div class="ttdoc">投递一个连接请求</div></div>
<div class="ttc" id="aclass_c_socket_html"><div class="ttname"><a href="class_c_socket.html">CSocket</a></div><div class="ttdoc">套接口类</div><div class="ttdef"><b>Definition:</b> <a href="_socket_8h_source.html#l00030">Socket.h:30</a></div></div>
<div class="ttc" id="a_sock_data_8h_html_ae8573b45542da05c99e8e2154032d606"><div class="ttname"><a href="_sock_data_8h.html#ae8573b45542da05c99e8e2154032d606">IoCompleteFunc</a></div><div class="ttdeci">DWORD(* IoCompleteFunc)(OVERLAPPED_EX *oved)</div><div class="ttdef"><b>Definition:</b> <a href="_sock_data_8h_source.html#l00017">SockData.h:17</a></div></div>
<div class="ttc" id="aclass_c_timer_base_html"><div class="ttname"><a href="class_c_timer_base.html">CTimerBase</a></div><div class="ttdoc">定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00017">Timer.h:17</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_af6768c0abfb54cce387c6b353b5e9dd0"><div class="ttname"><a href="class_c_udp_base.html#af6768c0abfb54cce387c6b353b5e9dd0">CUdpBase::GetIoPortService</a></div><div class="ttdeci">virtual CIoPortService * GetIoPortService()=0</div><div class="ttdoc">获取底层服务类</div></div>
<div class="ttc" id="astruct_o_v_e_r_l_a_p_p_e_d___e_x_html"><div class="ttname"><a href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a></div><div class="ttdef"><b>Definition:</b> <a href="_sock_data_8h_source.html#l00063">SockData.h:63</a></div></div>
<div class="ttc" id="aclass_c_udp_client_html_a96c10005edd6a1e8fe4a727fddd0d425"><div class="ttname"><a href="class_c_udp_client.html#a96c10005edd6a1e8fe4a727fddd0d425">CUdpClient::AsyncRecvfrom</a></div><div class="ttdeci">virtual void AsyncRecvfrom(CUdpSocket &amp;sock, const CStreamIteator &amp;buff, CSockAddr *addr, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_udp_client_8h_source.html#l00021">UdpClient.h:21</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_a4f67f613a4d8e20ee122a21eb0006dfa"><div class="ttname"><a href="class_c_udp_base.html#a4f67f613a4d8e20ee122a21eb0006dfa">CUdpBase::Init</a></div><div class="ttdeci">virtual CSockError Init(const char *name)</div><div class="ttdoc">初始化服务类函数</div><div class="ttdef"><b>Definition:</b> <a href="_udp_base_8h_source.html#l00014">UdpBase.h:14</a></div></div>
<div class="ttc" id="atools_8h_html_a798af1e30bc65f319c1a246cecf59e39"><div class="ttname"><a href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a></div><div class="ttdeci">unsigned int DWORD</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00134">tools.h:134</a></div></div>
<div class="ttc" id="aclass_c_io_port_service_html"><div class="ttname"><a href="class_c_io_port_service.html">CIoPortService</a></div><div class="ttdef"><b>Definition:</b> <a href="_io_port_service_8h_source.html#l00032">IoPortService.h:32</a></div></div>
<div class="ttc" id="atools_8h_html_ab689500aaec0db066e3ac9483d3fe425"><div class="ttname"><a href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></div><div class="ttdeci">#define NullPtr</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00119">tools.h:119</a></div></div>
<div class="ttc" id="aclass_c_udp_base_html_a63759990d87d12f87c1950290b54e8ee"><div class="ttname"><a href="class_c_udp_base.html#a63759990d87d12f87c1950290b54e8ee">CUdpBase::UpdateTimer</a></div><div class="ttdeci">virtual bool UpdateTimer(CTimerBase &amp;timer)=0</div></div>
<div class="ttc" id="aclass_c_udp_base_html_a3a32f4a3d3c6dcf2e596167c0388b9e8"><div class="ttname"><a href="class_c_udp_base.html#a3a32f4a3d3c6dcf2e596167c0388b9e8">CUdpBase::Post</a></div><div class="ttdeci">virtual void Post(const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)=0</div><div class="ttdoc">投递一个中断请求</div></div>
<div class="ttc" id="aclass_c_udp_base_html_a3278a0321a26d29983c080eebad9865e"><div class="ttname"><a href="class_c_udp_base.html#a3278a0321a26d29983c080eebad9865e">CUdpBase::NotifyStop</a></div><div class="ttdeci">virtual void NotifyStop()=0</div><div class="ttdoc">通知服务停止</div></div>
<div class="ttc" id="aclass_c_udp_base_html"><div class="ttname"><a href="class_c_udp_base.html">CUdpBase</a></div><div class="ttdef"><b>Definition:</b> <a href="_udp_base_8h_source.html#l00011">UdpBase.h:11</a></div></div>
<div class="ttc" id="aclass_c_udp_client_html_aecb1ef4ed9971bb418ae2e07f7852882"><div class="ttname"><a href="class_c_udp_client.html#aecb1ef4ed9971bb418ae2e07f7852882">CUdpClient::AsyncSendTo</a></div><div class="ttdeci">virtual void AsyncSendTo(CUdpSocket &amp;sock, const CStreamIteator &amp;buff, CSockAddr *addr, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_udp_client_8h_source.html#l00022">UdpClient.h:22</a></div></div>
<div class="ttc" id="aclass_c_udp_client_html"><div class="ttname"><a href="class_c_udp_client.html">CUdpClient</a></div><div class="ttdoc">udp服务类，用于连接发送功能 固删除接收对端地址的读写函数，若要接收对端地址信息的读写需使用UdpServer类</div><div class="ttdef"><b>Definition:</b> <a href="_udp_client_8h_source.html#l00014">UdpClient.h:14</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
